<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/templates/HeaderTopMenuTemplate.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:define name="conteudo">
       
        <p:panel id="pnlCadastro" header="Cadastro">
            <p:messages id="messages" autoUpdate="true" closable="true" />
            <h:panelGrid columns="2">
                <p:outputLabel for="txtNome" value="Nome:" styleClass="negrito"  />
                <p:inputText id="txtNome" size="50" maxlength="50" value="#{usuarioCadastroManagedBean.nome}" required="true"/>
             
             <p:outputLabel for="txtLogin" value="Login:" styleClass="negrito"  />
             <p:inputText id="txtLogin" size="50" maxlength="50" value="#{usuarioCadastroManagedBean.login}" required="true"/>
            
                 <p:outputLabel for="txtsenha" value="Senha:" styleClass="negrito"  />
                 <p:password id="txtsenha" size="50" maxlength="10" value="#{usuarioCadastroManagedBean.senha}" required="true"/>
            
                 <p:outputLabel for="txtConfSenha" value="Confirmar senha:" styleClass="negrito"  />
                 <p:password id="txtConfSenha" size="50" maxlength="10" value="#{usuarioCadastroManagedBean.confSenha}" required="true"/>
            
            </h:panelGrid>
             <h:panelGrid columns="2">
                 <p:commandButton id="btnOK" value="OK" action="#{usuarioCadastroManagedBean.onBotaoOKClick()}" icon="ui-icon-check"/>
                 <p:commandButton id="btnCancelar" value="Cancelar" immediate="true" action="/usuarioConsultaForm.xhtml?faces-redirect=true" icon="ui-icon-cancel" />
             </h:panelGrid>
        </p:panel>
    </ui:define>

</ui:composition>
